package com.hongmeng.operater.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hongmeng.common.annotation.Excel;
import com.hongmeng.common.core.domain.BaseEntity;

/**
 * 文件上传对象 hm_file
 * 
 * @author hongmeng
 * @date 2020-12-21
 */
public class HmFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件链接 */
    @Excel(name = "文件链接")
    private String fileUrl;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 文件模式:分image/gif、image/jpeg 、image/png、application/msword、application/octet-stream  */
    @Excel(name = "文件模式:分image/gif、image/jpeg 、image/png、application/msword、application/octet-stream ")
    private String contentType;

    /** 文件md5 */
    @Excel(name = "文件md5")
    private String md5;

    /** 文件大小 单位KB */
    @Excel(name = "文件大小 单位KB")
    private Long fileSize;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件id */
    private Integer id;

    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setMd5(String md5) 
    {
        this.md5 = md5;
    }

    public String getMd5() 
    {
        return md5;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileUrl", getFileUrl())
            .append("fileType", getFileType())
            .append("contentType", getContentType())
            .append("md5", getMd5())
            .append("fileSize", getFileSize())
            .append("fileName", getFileName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("id", getId())
            .toString();
    }
}
